import request from "@/utils/request";
import qs from "qs";
import { Base64 } from "js-base64";
import {
  HomeCrde_,
  EcartsA_,
  EcartsCommSel_,
  EcartsB_,
  EcartsD_,
  EcartsE_,
  EcartsF_,
  EcartsG_,
  EcartsCangku_,
  reminderPwd_,
} from "./urlApi";
// 登录信息
export function HomeCrde() {
  return request({
    url: HomeCrde_,
    method: "post",
    // data: qs.stringify(data),
  });
}
// 图标A
export function EcartsA(data) {
  return request({
    url: EcartsA_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
}
// 图标B
export function EcartsB(data) {
  return request({
    url: EcartsB_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
}
// 图标D
export function EcartsD(data) {
  return request({
    url: EcartsD_,
    headers: {
      repeatSubmit: false,
      "Content-Type": "application/json",
    },
    method: "post",
    data: JSON.stringify(data),
  });
}
// 图标E
export function EcartsE(data) {
  return request({
    url: EcartsE_,
    headers: {
      repeatSubmit: false,
      "Content-Type": "application/json",
    },
    method: "post",
    data: JSON.stringify(data),
  });
}

// 图标F
export function EcartsF(data) {
  return request({
    url: EcartsF_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
}
// 图标F
export function EcartsG(data) {
  return request({
    url: EcartsG_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
}
// 商品下拉
export function EcartsCommSel(data) {
  return request({
    url: EcartsCommSel_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
}
// 仓库
export function EcartsCangku(data) {
  return request({
    url: EcartsCangku_,
    headers: {
      repeatSubmit: false,
      "Content-Type": "application/json",
    },
    method: "post",
    data: JSON.stringify(data),
  });
}

export function reminderPwd(data) {
  return request({
    url: reminderPwd_,
    method: "post",
    data: qs.stringify(data),
  });
}
